package org.crh.common;

import org.crh.common.domain.AppointmentRecord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:
 * @author: RenHai Chen
 * @date: 2025/4/3 14:19
 */
@FeignClient(name = "appointment-service", path = "/api")
public interface ProviderFeignClient {
    @GetMapping("order/{orderNo}")
    AppointmentRecord getOrderByOrderNo(@PathVariable("orderNo") String orderNo);

    @PostMapping("order/updateStatus")
    int updateStatus(@RequestBody AppointmentRecord order);
}
